Image uploading method, image uploading device, electronic device and storage medium
By obtaining and verifying positioning data and feature information when taking house images, the problem of false positioning of real estate agents and unreliable image authenticity is solved, and the reliability and authenticity of online house viewing is achieved.
Patent Information
- Application Number
- CN202211162990.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-23
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2042-09-23
AI Technical Summary
When real estate agents take photos of property images, there are false positioning information and untrusted image authenticity problems, resulting in the online house viewing experience being unreal.
By obtaining positioning data when shooting target images, image recognition is performed to determine feature information, and verifying the authenticity of the data source and feature information of the positioning data through the operating system API, ensuring that the data source is reliable and the feature information matches, the associated target image is associated with the data image. and location information are uploaded to the server.
It effectively verifies whether the images taken by the real estate agent are real, ensures the reliability of online house viewing, and avoids the upload and use of false images.
Smart Images

Figure CN115426350B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of image uploading, and specifically relates to an image uploading method, an image uploading device, an electronic device and a storage medium. Background Art
[0002] In the related art, for online house viewing, real estate agents are required to take images of the house on site to provide users with a reference for house viewing. Whether the house image is authentic will have a direct impact on the user's online house viewing experience. If the real estate agent uploads a false image, the image the user sees online will be inconsistent with the state of the house when viewing the house on site. In order to ensure the authenticity of the house image, it is necessary to collect the geographical location of the agent when taking the image. If the geographical location of the agent when taking the image is the same as the geographical location of the actual house, the house image is considered to be authentic and valid.
[0003] Due to the existence of third-party software with virtual positioning functions, there is a possibility of cheating in the positioning information of the broker when taking pictures, and the positioning information is unreliable. There are also situations where the broker's location is correct, but the uploaded image is not the property photo that needs to be taken, which ultimately makes the authenticity of the property photos taken unreliable. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an image uploading method, an image uploading device, an electronic device and a storage medium, which can solve the problem that the authenticity of the photos of the reserved house is not reliable.
[0005] In a first aspect, an embodiment of the present application provides an image uploading method for an electronic device, where the electronic device runs an operating system, and the image uploading method includes:
[0006] When capturing a target image, obtaining positioning data;
[0007] Perform image recognition on the target image to determine the characteristic information of the target image;
[0008] Determine the data source of the positioning data through the operating system's application program interface;
[0009] Verify feature information and data sources;
[0010] When the feature information and data source are verified, the location information is determined based on the positioning data;
[0011] The target image and the location information are associated, and the associated target image and location information are uploaded to the server.
[0012] In a second aspect, an embodiment of the present application provides an image uploading device for an electronic device, the electronic device running an operating system, the image uploading device comprising:
[0013] An acquisition module is used to acquire positioning data when capturing a target image;
[0014] Identify modules for:
[0015] Perform image recognition on the target image to determine the characteristic information of the target image; determine the data source of the positioning data through the application program interface of the operating system;
[0016] Verification module, used to verify feature information and data sources;
[0017] The determination module is further used to determine the location information according to the positioning data when both the feature information and the data source are verified;
[0018] The upload module is used to associate the target image with the location information and upload the associated target image and location information to the server.
[0019] In a third aspect, an embodiment of the present application provides another image uploading device, including:
[0020] Memory, used to store programs or instructions;
[0021] A processor is used to implement the steps of the image uploading method provided in the first aspect when executing a program or instruction.
[0022] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
[0023] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising an image uploading device as provided in the second aspect or the third aspect; and / or a readable storage medium as provided in the fourth aspect.
[0024] In a sixth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the image uploading method of the first aspect.
[0025] In a seventh aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the image uploading method of the first aspect.
[0026] In the embodiment of the present application, by judging whether the positioning data is reliable and judging whether the target image is real, when the data source is reliable and the characteristic information of the target image is verified, it is determined that the currently captured target image is a real image of the house, thereby ensuring the reliability of online house viewing. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flowchart of an image uploading method according to an embodiment of the present application is shown;
[0028] Figure 2 A structural block diagram of an image uploading device according to an embodiment of the present application is shown;
[0029] Figure 3 A structural block diagram of an electronic device according to an embodiment of the present application is shown;
[0030] Figure 4 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0032] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0033] The image uploading method, image uploading device, electronic device and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0034] In some embodiments of the present application, a method for uploading an image is provided for use in an electronic device, wherein the electronic device runs an operating system. Figure 1 A flowchart of an image uploading method according to an embodiment of the present application is shown. Figure 1 As shown, the image upload method includes:
[0035] Step 102, when capturing a target image, obtaining positioning data;
[0036] Step 104, performing image recognition on the target image to determine feature information of the target image;
[0037] Step 106, determining the data source of the positioning data through the application program interface of the operating system;
[0038] Step 108, verifying the characteristic information and data source;
[0039] Step 110, when both the characteristic information and the data source are verified, determining the location information according to the positioning data;
[0040] Step 112: Associating the target image with the location information, and uploading the associated target image and location information to the server.
[0041] In the embodiment of the present application, the positioning scenario can be a scenario in which a real estate agent performs positioning in order to verify the authenticity of an image when taking a real image of a house. In the process of taking an image of a house through an image acquisition software, the image acquisition software applies for positioning. For example, in application scenarios such as virtual reality (VR) house viewing and online house viewing, a real estate agent is required to take a real image of a house on site to provide a reference for users to view the house.
[0042] Specifically, real estate agents can use mobile phones and other electronic devices to run image acquisition software to capture real images of properties, also known as target images. The target image can be an image of the property's entrance house number, a kitchen, a bedroom, a living room, a bathroom, or a community environment.
[0043] When the real estate agent takes the target image, the image acquisition software applies for positioning to obtain positioning data. After receiving the positioning data, the operating system's application program interface (API) is used to identify whether the data source of the positioning data is credible. The data source may be virtual positioning software, normal positioning software, such as a certain map software, or the positioning function of an electronic device, such as the GPS (Global Positioning System) function. It is understandable that if the data source of the positioning data is virtual positioning software, it means that the data source of the positioning data is unreliable.
[0044] For example, for some operating systems, such as the Android operating system, the data source of the positioning data can be tracked through the API interface encapsulated by the system.
[0045] The data source of the positioning data is verified to determine whether the data source of the current positioning data is reliable. Specifically, it is determined whether the data source of the positioning data comes from forged or virtual positioning rather than real positioning.
[0046] If the data source is determined to be reliable, the data source is judged to have passed the verification. At this time, the specific location information is determined based on the positioning data. The location information has high credibility and can be used to determine the actual location of the electronic device that is currently running the image acquisition software. It can also be used to mark the actual location of the captured image.
[0047] If the data source is unreliable, such as fake positioning or virtual positioning, the data source is determined to be unreliable and the data source cannot be verified. At this time, the corresponding positioning data can be discarded and the positioning can be requested again.
[0048] At the same time, after capturing the target image, feature information of the target image is extracted through an image recognition algorithm. The feature information is related to the captured content of the target image, such as the shape, position, color, etc. of the object included in the target image, such as a yellow chair, and also includes text information included in the target image, such as a house number.
[0049] The characteristic information of the target image is verified to determine whether the target image is a real image. For example, when taking a photo of a house, the target house to be photographed is a bare house, but according to the characteristic information of the target image, it is determined that the target image is a photo of a fully decorated house. In this case, it is determined that the photographed target image is not the house image to be uploaded, and it is determined that the characteristic information has not passed the verification.
[0050] When the characteristic information of the target image and the data source of the positioning data are verified, the target image and the captured target image are associated, and the associated target image and positioning information are uploaded to the server. Since the data source of the positioning data and the characteristic information of the target image are verified, the server can determine that the target image taken by the real estate agent is a real image of the house.
[0051] The embodiment of the present application determines whether the positioning data is reliable and whether the target image is real. When the data source is reliable and the characteristic information of the target image is verified, it is determined that the currently captured target image is a real image of the house, thereby ensuring the reliability of online house viewing.
[0052] In some embodiments of the present application, verifying the data source includes:
[0053] In case the data source is a virtual location, it is determined that the data source has not passed verification.
[0054] In an embodiment of the present application, a system API is called to identify whether the data source of the positioning data is credible. Specifically, a system API is called to determine whether the positioning data obtained in this positioning is derived from virtual positioning or forged positioning. If the data source of the positioning data obtained in this positioning is virtual positioning, it means that the positioning result of the positioning data is not a real positioning result, and it is determined that the source of the positioning data fails the verification, and the positioning data is acquired again.
[0055] If the positioning data obtained in this positioning is not a virtual positioning, it is determined that the positioning result of the positioning data is a real positioning result, and it is determined that the data source of the positioning data is verified.
[0056] The present application determines whether the positioning data is generated based on real positioning results by identifying whether the data source of the positioning data is virtual positioning, thereby ensuring the data credibility when the electronic device is positioned.
[0057] In some embodiments of the present application, verifying the data source includes:
[0058] Obtain auxiliary positioning data, the data source of the auxiliary positioning data is different from the data source of the positioning data;
[0059] When the deviation between the longitude and latitude information corresponding to the auxiliary positioning data and the longitude and latitude data of the positioning data is less than a preset threshold, it is determined that the data source has passed the verification.
[0060] In an embodiment of the present application, after the positioning data is acquired, auxiliary positioning data is further acquired, and it is ensured that the data source of the auxiliary positioning data is different from the data source of the current positioning data.
[0061] Specifically, there are generally multiple ways for electronic devices to obtain positioning data, such as GPS positioning, base station positioning, UWB (Ultra Wide Band) positioning, etc. The same data source may use one or more positioning methods to generate positioning data.
[0062] For example, the data source of the currently acquired positioning data is the positioning data generated by a certain map software through GPS positioning. After obtaining the current positioning data, other software and other positioning methods are further used to generate auxiliary positioning data, such as using a certain network software to obtain auxiliary positioning data through base station positioning.
[0063] According to the current positioning data, the longitude and latitude data obtained from the data source of the current positioning data is determined, which is recorded here as the first longitude and latitude data, and according to the auxiliary positioning data, the longitude and latitude data obtained from the data source of the auxiliary positioning data is determined, which is recorded here as the second longitude and latitude data.
[0064] If the deviation between the first longitude and longitude data and the second longitude and longitude data is less than a preset threshold, it is determined that the positioning results of the two positionings are the same or close. Since the data sources of the two are different, they serve as evidence of the correctness of the data to each other. Therefore, it is judged that the positioning data is accurate and the data source is verified.
[0065] If the deviation between the first longitude and longitude data and the second longitude and longitude data is greater than or equal to a preset threshold, it is determined that the positioning results of the two positionings are quite different, and it is likely that at least one of the data sources is a fake positioning or virtual positioning application. Therefore, it is determined that the positioning data of this positioning is unreliable and the data source cannot be verified.
[0066] The present application compares the positioning data from two different data sources to determine whether their positioning results are the same or similar, so as to determine whether the positioning data has the possibility of being tampered with or forged, and then verify the data source of the positioning data, thereby ensuring the authenticity of the positioning information and improving the credibility of the positioning information.
[0067] In some embodiments of the present application, the image uploading method is used in an electronic device to verify the source of data, including:
[0068] Get the background program list of the electronic device;
[0069] In the background program list, if the preset target program is not included, it is determined that the data source has passed the verification.
[0070] In an embodiment of the present application, after obtaining the positioning data, the electronic device screens the applications currently running in the background to determine whether there are any applications with fake positioning or virtual positioning among the applications running in the background, thereby determining whether the currently acquired positioning data is reliable.
[0071] Specifically, when an application for forged positioning or virtual positioning is running in the background of an electronic device, it means that the user currently using the electronic device has a need for forged positioning. In this case, the positioning data generated is most likely unreliable positioning data.
[0072] Therefore, the present application presets a target program, wherein the target program is specifically a known application program with a virtual positioning or fake positioning function, and the number of target programs is multiple. It can be understood that the number of target programs can be updated regularly to ensure that newly emerging fake positioning or virtual positioning applications can be identified.
[0073] The electronic device traverses the background program list and determines whether the target program appears in the background program list. If the target program appears in the background program list, that is, there is a fake positioning or virtual positioning application running in the background of the electronic device, then it is determined that the currently acquired positioning data is unreliable and the data source cannot be verified.
[0074] If the target program is not included in the background program list, that is, no fake positioning or virtual positioning application is running in the background of the electronic device, it is determined that the current positioning data is reliable and the data source is verified.
[0075] This application determines whether the currently generated positioning data is reliable by screening the background applications of electronic devices to determine whether there are applications for fake positioning or virtual positioning in the background programs, thereby ensuring the authenticity of the positioning information and improving the credibility of the positioning information.
[0076] In some embodiments of the present application, the server stores N preset feature information corresponding to N preset images, where N is a positive integer;
[0077] Verify the feature information, including:
[0078] Sending the characteristic information to the server so that the server can determine the comparison result between the N preset characteristic information and the characteristic information;
[0079] receiving comparison results;
[0080] When the comparison result is that the N preset characteristic information do not include the characteristic information, it is determined that the characteristic information passes the verification.
[0081] In the embodiment of the present application, the server is an online house viewing server, and the online house viewing server stores N preset images, which are uploaded house source images. The server also stores preset feature information of these house source images.
[0082] After identifying the feature information of the currently captured target image, the feature information is sent to the server, which checks the feature information for duplication. Specifically, the server compares the feature information of the current target image with the N saved preset feature information one by one to see if the similarity is greater than a threshold. If there is one preset feature information among the N preset feature information whose similarity with the feature information of the current target image is greater than the threshold, it means that the "target image" is already included in the N preset images, that is, the "target image" has been captured and uploaded. At this time, the server returns the comparison result, informing the terminal side that the target image has failed the duplication check. At this time, the terminal side determines that the feature information has not passed the verification.
[0083] If the similarities between the N preset feature information and the feature information of the current target image are all less than the threshold, it means that the target image has not been uploaded to the server. At this time, the server returns the comparison result and informs the terminal side that the target image has passed the duplicate check. At this time, the terminal side determines that the feature information has passed the verification.
[0084] The embodiment of the present application performs a duplicate check on the captured target image and determines whether the characteristic information of the target image has passed the verification based on the duplicate check result, thereby avoiding uploading duplicate images, ensuring the authenticity of the house image, and saving server resources.
[0085] In some embodiments of the present application, before capturing the target image, the image uploading method further includes:
[0086] receiving shooting task information, the shooting task information including target feature information of a target shooting object;
[0087] Verify the feature information, including:
[0088] When the characteristic information matches the target characteristic information, it is determined that the characteristic information passes the verification.
[0089] In an embodiment of the present application, the terminal side held by the broker receives the shooting task information issued by the server, and the shooting task information is used to indicate the target shooting object that the broker wants to shoot. The target shooting object can be the house number of the target house, the living room of the target house, the kitchen of the target house, etc., and also includes feature information of the target shooting object, such as the specific house number, whether the living room is fully decorated or plain, etc.
[0090] After capturing the target image on the terminal side, the feature information of the target image is identified. Taking the target image as a house number as an example, the character information in the target image is identified through the OCR (Optical Character Recognition) algorithm. The character information is the feature information. The character information is compared with the house number indicated by the shooting task information to see if they are consistent. If they are consistent, the feature information passes the verification; if not, the feature information fails the verification.
[0091] Taking the target shooting object as a living room as an example, image recognition is performed on the target image to identify the characteristic information of the target image. The characteristic information can reflect whether the captured room image conforms to the layout of the living room, and whether it is plain or finely decorated. If the target shooting object indicated by the shooting task information is a plain living room, and the characteristic information of the target image reflects that the room layout of the target image is different from that of the living room, or it is a finely decorated living room, it is determined that the characteristic information has not passed the verification. If the characteristic information of the target image reflects that the target image is an image of a plain living room, the characteristic information has passed the verification.
[0092] The embodiment of the present application judges whether the shooting object of the target image is consistent with the target shooting object indicated by the shooting task information sent by the server, and determines whether the feature information of the target image has passed the verification based on the judgment result, thereby avoiding uploading images with incorrect shooting objects and ensuring the authenticity of the uploaded house images.
[0093] In some embodiments of the present application, the image uploading method further includes: when the feature information or the data source fails to pass the verification, displaying corresponding abnormal information.
[0094] In an embodiment of the present application, if the data source fails to pass the verification, it means that the system determines that the currently acquired positioning data is unreliable, and the positioning information determined based on the current positioning data is unreliable, then the positioning exception information is displayed, and the exception information may include specific exception content, such as "virtual positioning software is detected", or "the positioning information is far from the auxiliary positioning information", etc., and prompts the broker to eliminate the corresponding exceptions and re-position.
[0095] If the feature information fails the verification, it means that the target image is not the real property image that needs to be taken. At this time, the image abnormality information is displayed. The abnormality information may include specific abnormal content, such as "the photographed content does not match the target content", "house number recognition failed", etc., prompting the current agent to re-take the target image.
[0096] The image uploading method provided in the embodiment of the present application can be executed by an image uploading device. In the embodiment of the present application, the image uploading device provided in the embodiment of the present application is described by taking the image uploading method executed by the image uploading device as an example.
[0097] In some embodiments of the present application, an image uploading device is provided for use in an electronic device, wherein the electronic device runs an operating system. Figure 2 FIG. 4 shows a structural block diagram of an image uploading device according to an embodiment of the present application. Figure 2 As shown, the image uploading device 200 includes:
[0098] The acquisition module 202 is used to acquire positioning data when capturing a target image;
[0099] The determination module 204 is used to perform image recognition on the target image and determine the characteristic information of the target image; determine the data source of the positioning data through the application program interface of the operating system;
[0100] Verification module 206, used to verify the feature information and data source;
[0101] The determination module 204 is further used to determine the location information according to the positioning data when both the characteristic information and the data source are verified;
[0102] The uploading module 208 is used to associate the target image with the location information and upload the associated target image and location information to the server.
[0103] In the embodiment of the present application, the positioning scenario can be a scenario in which a real estate agent performs positioning in order to verify the authenticity of an image when taking a real image of a house. In the process of taking an image of a house through an image acquisition software, the image acquisition software applies for positioning. For example, in application scenarios such as virtual reality (VR) house viewing and online house viewing, a real estate agent is required to take a real image of a house on site to provide a reference for users to view the house.
[0104] Specifically, real estate agents can use mobile phones and other electronic devices to run image acquisition software to capture real images of properties, also known as target images. The target image can be an image of the property's entrance house number, a kitchen, a bedroom, a living room, a bathroom, or a community environment.
[0105] When the real estate agent takes the target image, the image acquisition software applies for positioning to obtain positioning data. After receiving the positioning data, the operating system's application program interface (API) is used to identify whether the data source of the positioning data is credible. The data source may be virtual positioning software, normal positioning software, such as a certain map software, or the positioning function of an electronic device, such as the GPS (Global Positioning System) function. It is understandable that if the data source of the positioning data is virtual positioning software, it means that the data source of the positioning data is unreliable.
[0106] For example, for some operating systems, such as the Android operating system, the data source of the positioning data can be tracked through the API interface encapsulated by the system.
[0107] The data source of the positioning data is verified to determine whether the data source of the current positioning data is reliable. Specifically, it is determined whether the data source of the positioning data comes from forged or virtual positioning rather than real positioning.
[0108] If the data source is determined to be reliable, the data source is judged to have passed the verification. At this time, the specific location information is determined based on the positioning data. The location information has high credibility and can be used to determine the actual location of the electronic device that is currently running the image acquisition software. It can also be used to mark the actual location of the captured image.
[0109] If the data source is unreliable, such as fake positioning or virtual positioning, the data source is determined to be unreliable and the data source cannot be verified. At this time, the corresponding positioning data can be discarded and the positioning can be requested again.
[0110] At the same time, after capturing the target image, feature information of the target image is extracted through an image recognition algorithm. The feature information is related to the captured content of the target image, such as the shape, position, color, etc. of the object included in the target image, such as a yellow chair, and also includes text information included in the target image, such as a house number.
[0111] The characteristic information of the target image is verified to determine whether the target image is a real image. For example, when taking a photo of a house, the target house to be photographed is a bare house, but according to the characteristic information of the target image, it is determined that the target image is a photo of a fully decorated house. In this case, it is determined that the photographed target image is not the house image to be uploaded, and it is determined that the characteristic information has not passed the verification.
[0112] When the characteristic information of the target image and the data source of the positioning data are verified, the target image and the captured target image are associated, and the associated target image and positioning information are uploaded to the server. Since the data source of the positioning data and the characteristic information of the target image are verified, the server can determine that the target image taken by the real estate agent is a real image of the house.
[0113] The embodiment of the present application determines whether the positioning data is reliable and whether the target image is authentic. When the data source is reliable and the characteristic information of the target image is verified, it is determined that the captured target image is a real image of the house, thereby ensuring the reliability of online house viewing.
[0114] In some embodiments of the present application, the image uploading device further includes:
[0115] The determination module is used to determine that the data source has not passed the verification when the data source is a virtual positioning.
[0116] In an embodiment of the present application, a system API is called to identify whether the data source of the positioning data is credible. Specifically, a system API is called to determine whether the positioning data obtained in this positioning is derived from virtual positioning or forged positioning. If the data source of the positioning data obtained in this positioning is virtual positioning, it means that the positioning result of the positioning data is not a real positioning result, and it is determined that the source of the positioning data fails the verification, and the positioning data is acquired again.
[0117] If the positioning data obtained in this positioning is not a virtual positioning, it is determined that the positioning result of the positioning data is a real positioning result, and it is determined that the data source of the positioning data is verified.
[0118] The present application determines whether the positioning data is generated based on real positioning results by identifying whether the data source of the positioning data is virtual positioning, thereby ensuring the data credibility when the electronic device is positioned.
[0119] In some embodiments of the present application, the acquisition module is further used to acquire auxiliary positioning data, and the data source of the auxiliary positioning data is different from the data source of the positioning data;
[0120] The determination module is also used to determine that the data source has passed the verification when the deviation between the longitude and latitude information corresponding to the auxiliary positioning data and the longitude and latitude data of the positioning data is less than a preset threshold.
[0121] In an embodiment of the present application, after the positioning data is acquired, auxiliary positioning data is further acquired, and it is ensured that the data source of the auxiliary positioning data is different from the data source of the current positioning data.
[0122] Specifically, there are generally multiple ways for electronic devices to obtain positioning data, such as GPS positioning, base station positioning, UWB (Ultra Wide Band) positioning, etc. The same data source may use one or more positioning methods to generate positioning data.
[0123] For example, the data source of the currently acquired positioning data is the positioning data generated by a certain map software through GPS positioning. After obtaining the current positioning data, other software and other positioning methods are further used to generate auxiliary positioning data, such as using a certain network software to obtain auxiliary positioning data through base station positioning.
[0124] According to the current positioning data, the longitude and latitude data obtained from the data source of the current positioning data is determined, which is recorded here as the first longitude and latitude data, and according to the auxiliary positioning data, the longitude and latitude data obtained from the data source of the auxiliary positioning data is determined, which is recorded here as the second longitude and latitude data.
[0125] If the deviation between the first longitude and longitude data and the second longitude and longitude data is less than a preset threshold, it is determined that the positioning results of the two positionings are the same or close. Since the data sources of the two are different, they serve as evidence of the correctness of the data to each other. Therefore, it is judged that the positioning data is accurate and the data source is verified.
[0126] If the deviation between the first longitude and longitude data and the second longitude and longitude data is greater than or equal to a preset threshold, it is determined that the positioning results of the two positionings are quite different, and it is likely that at least one of the data sources is a fake positioning or virtual positioning application. Therefore, it is determined that the positioning data of this positioning is unreliable and the data source cannot be verified.
[0127] The present application compares the positioning data from two different data sources to determine whether their positioning results are the same or similar, so as to determine whether the positioning data has the possibility of being tampered with or forged, and then verify the data source of the positioning data, thereby ensuring the authenticity of the positioning information and improving the credibility of the positioning information.
[0128] In some embodiments of the present application, the image uploading method is used for an electronic device, and the acquisition module is also used to obtain a list of background programs of the electronic device;
[0129] The determination module is also used to determine that the data source has passed the verification when the preset target program is not included in the background program list.
[0130] In an embodiment of the present application, after obtaining the positioning data, the electronic device screens the applications currently running in the background to determine whether there are any applications with fake positioning or virtual positioning among the applications running in the background, thereby determining whether the currently acquired positioning data is reliable.
[0131] Specifically, when an application for forged positioning or virtual positioning is running in the background of an electronic device, it means that the user currently using the electronic device has a need for forged positioning. In this case, the positioning data generated is most likely unreliable positioning data.
[0132] Therefore, the present application presets a target program, wherein the target program is specifically a known application program with a virtual positioning or fake positioning function, and the number of target programs is multiple. It can be understood that the number of target programs can be updated regularly to ensure that newly emerging fake positioning or virtual positioning applications can be identified.
[0133] The electronic device traverses the background program list and determines whether the target program appears in the background program list. If the target program appears in the background program list, that is, there is a fake positioning or virtual positioning application running in the background of the electronic device, then it is determined that the currently acquired positioning data is unreliable and the data source cannot be verified.
[0134] If the target program is not included in the background program list, that is, no fake positioning or virtual positioning application is running in the background of the electronic device, it is determined that the current positioning data is reliable and the data source is verified.
[0135] This application determines whether the currently generated positioning data is reliable by screening the background applications of electronic devices to determine whether there are applications for fake positioning or virtual positioning in the background programs, thereby ensuring the authenticity of the positioning information and improving the credibility of the positioning information.
[0136] In some embodiments of the present application, the server stores N preset feature information corresponding to N preset images, where N is a positive integer;
[0137] The image uploading device also includes:
[0138] A sending module, used for sending the characteristic information to the server, so that the server can determine the comparison result between N preset characteristic information and the characteristic information;
[0139] A receiving module, used for receiving the comparison result;
[0140] The determination module is further used to determine that the characteristic information has passed the verification when the comparison result is that the N preset characteristic information does not include the characteristic information.
[0141] In the embodiment of the present application, the server is an online house viewing server, and the online house viewing server stores N preset images, which are uploaded house source images. The server also stores preset feature information of these house source images.
[0142] After identifying the feature information of the currently captured target image, the feature information is sent to the server, which checks the feature information for duplication. Specifically, the server compares the feature information of the current target image with the N saved preset feature information one by one to see if the similarity is greater than a threshold. If there is one preset feature information among the N preset feature information whose similarity with the feature information of the current target image is greater than the threshold, it means that the "target image" is already included in the N preset images, that is, the "target image" has been captured and uploaded. At this time, the server returns the comparison result, informing the terminal side that the target image has failed the duplication check. At this time, the terminal side determines that the feature information has not passed the verification.
[0143] If the similarities between the N preset feature information and the feature information of the current target image are all less than the threshold, it means that the target image has not been uploaded to the server. At this time, the server returns the comparison result and informs the terminal side that the target image has passed the duplicate check. At this time, the terminal side determines that the feature information has passed the verification.
[0144] The embodiment of the present application performs a duplicate check on the captured target image and determines whether the characteristic information of the target image has passed the verification based on the duplicate check result, thereby avoiding uploading duplicate images, ensuring the authenticity of the house image, and saving server resources.
[0145] In some embodiments of the present application, the image uploading device further includes:
[0146] A receiving module, used to receive shooting task information, where the shooting task information includes target feature information of a target shooting object;
[0147] The determination module is further used to determine that the feature information passes the verification when the feature information matches the target feature information.
[0148] In an embodiment of the present application, the terminal side held by the broker receives the shooting task information issued by the server, and the shooting task information is used to indicate the target shooting object that the broker wants to shoot. The target shooting object can be the house number of the target house, the living room of the target house, the kitchen of the target house, etc., and also includes feature information of the target shooting object, such as the specific house number, whether the living room is fully decorated or plain, etc.
[0149] After capturing the target image on the terminal side, the feature information of the target image is identified. Taking the target image as a house number as an example, the character information in the target image is identified through the OCR (Optical Character Recognition) algorithm. The character information is the feature information. The character information is compared with the house number indicated by the shooting task information to see if they are consistent. If they are consistent, the feature information passes the verification; if not, the feature information fails the verification.
[0150] Taking the target shooting object as a living room as an example, image recognition is performed on the target image to identify the characteristic information of the target image. The characteristic information can reflect whether the captured room image conforms to the layout of the living room, and whether it is plain or finely decorated. If the target shooting object indicated by the shooting task information is a plain living room, and the characteristic information of the target image reflects that the room layout of the target image is different from that of the living room, or it is a finely decorated living room, it is determined that the characteristic information has not passed the verification. If the characteristic information of the target image reflects that the target image is an image of a plain living room, the characteristic information has passed the verification.
[0151] The embodiment of the present application judges whether the shooting object of the target image is consistent with the target shooting object indicated by the shooting task information sent by the server, and determines whether the feature information of the target image has passed the verification based on the judgment result, thereby avoiding uploading images with incorrect shooting objects and ensuring the authenticity of the uploaded house images.
[0152] In some embodiments of the present application, the image uploading device further includes: a display module, configured to display corresponding abnormal information when the feature information or the data source fails to pass the verification.
[0153] In an embodiment of the present application, if the data source fails to pass the verification, it means that the system determines that the currently acquired positioning data is unreliable, and the positioning information determined based on the current positioning data is unreliable, then the positioning exception information is displayed, and the exception information may include specific exception content, such as "virtual positioning software is detected", or "the positioning information is far from the auxiliary positioning information", etc., and prompts the broker to eliminate the corresponding exceptions and re-position.
[0154] If the feature information fails the verification, it means that the target image is not the real property image that needs to be taken. At this time, the image abnormality information is displayed. The abnormality information may include specific abnormal content, such as "the photographed content does not match the target content", "house number recognition failed", etc., prompting the current agent to re-take the target image.
[0155] The image uploading device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0156] The image uploading device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0157] The image uploading device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.
[0158] In some embodiments of the present application, another image uploading device is provided, including: a memory for storing programs or instructions; a processor for implementing the steps of the image uploading method provided in any of the above embodiments when executing the programs or instructions. Therefore, and to achieve the same technical effect, it will not be repeated here to avoid repetition.
[0159] Optionally, an embodiment of the present application further provides an electronic device, Figure 3 A structural block diagram of an electronic device according to an embodiment of the present application is shown. Figure 3As shown, the electronic device 300 includes a processor 302, a memory 304, and a program or instruction stored in the memory 304 and executable on the processor 302. When the program or instruction is executed by the processor 302, each process of the above-mentioned method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0160] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0161] Figure 4 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0162] The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410 and other components.
[0163] Those skilled in the art will appreciate that the electronic device 400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 410 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0164] Among them, the processor 410 is used to obtain positioning data when shooting a target image; perform image recognition on the target image to determine the characteristic information of the target image; determine the data source of the positioning data through the application program interface of the operating system; verify the characteristic information and the data source; when the characteristic information and the data source are verified, determine the location information according to the positioning data; associate the target image and the location information, and upload the associated target image and location information to the server.
[0165] The embodiment of the present application determines whether the positioning data is reliable and whether the target image is real. When the data source is reliable and the characteristic information of the target image is verified, it is determined that the currently captured target image is a real image of the house, thereby ensuring the reliability of online house viewing.
[0166] Optionally, the processor 410 is configured to determine that the data source has not passed verification when the data source is a virtual positioning.
[0167] The present application determines whether the positioning data is generated based on real positioning results by identifying whether the data source of the positioning data is virtual positioning, thereby ensuring the data credibility when the electronic device is positioned.
[0168] Optionally, the processor 410 is also used to obtain auxiliary positioning data, and the data source of the auxiliary positioning data is different from the data source of the positioning data; when the deviation between the longitude and latitude information corresponding to the auxiliary positioning data and the longitude and latitude data of the positioning data is less than a preset threshold, it is determined that the data source has passed the verification.
[0169] The present application compares the positioning data from two different data sources to determine whether their positioning results are the same or similar, so as to determine whether the positioning data has the possibility of being tampered with or forged, and then verify the data source of the positioning data, thereby ensuring the authenticity of the positioning information and improving the credibility of the positioning information.
[0170] Optionally, the processor 410 is further configured to obtain a background program list of the electronic device; if a preset target program is not included in the background program list, it is determined that the data source has passed the verification.
[0171] This application determines whether the currently generated positioning data is reliable by screening the background applications of electronic devices to determine whether there are applications for fake positioning or virtual positioning in the background programs, thereby ensuring the authenticity of the positioning information and improving the credibility of the positioning information.
[0172] Optionally, the server stores N preset feature information corresponding to N preset images one by one, where N is a positive integer;
[0173] The processor 410 is also used to send the feature information to the server so that the server can determine the comparison result between N preset feature information and the feature information; receive the comparison result; and determine that the feature information has passed the verification when the comparison result is that the N preset feature information does not include the feature information.
[0174] The embodiment of the present application performs a duplicate check on the captured target image and determines whether the characteristic information of the target image has passed the verification based on the duplicate check result, thereby avoiding uploading duplicate images, ensuring the authenticity of the house image, and saving server resources.
[0175] Optionally, the processor 410 is further configured to receive shooting task information, where the shooting task information includes target feature information of a target shooting object; and when the feature information matches the target feature information, determine that the feature information passes the verification.
[0176] The embodiment of the present application judges whether the shooting object of the target image is consistent with the target shooting object indicated by the shooting task information sent by the server, and determines whether the feature information of the target image has passed the verification based on the judgment result, thereby avoiding uploading images with incorrect shooting objects and ensuring the authenticity of the uploaded house images.
[0177] Optionally, the display unit 406 is used to display corresponding abnormal information when the characteristic information or data source fails to pass the verification.
[0178] In an embodiment of the present application, if the data source fails to pass the verification, it means that the system determines that the currently acquired positioning data is unreliable, and the positioning information determined based on the current positioning data is unreliable, then the positioning exception information is displayed. The exception information may include specific abnormal content, such as "virtual positioning software is detected", or "the positioning information is far from the auxiliary positioning information", etc., and prompts the current user to eliminate the corresponding abnormality and re-position.
[0179] If the feature information fails the verification, it means that the target image is not the real property image that needs to be taken. At this time, the image abnormality information is displayed. The abnormality information may include specific abnormal content, such as "the photographed content does not match the target content", "house number recognition failed", etc., prompting the current agent to re-take the target image.
[0180] It should be understood that in the embodiment of the present application, the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 407 includes a touch panel 4071 and at least one of other input devices 4072. The touch panel 4071 is also called a touch screen. The touch panel 4071 may include two parts: a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0181] The memory 409 can be used to store software programs and various data. The memory 409 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 409 may include a volatile memory or a non-volatile memory, or the memory 409 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0182] The processor 410 may include one or more processing units; optionally, the processor 410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 410.
[0183] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0184] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0185] In an embodiment of the present application, an electronic device is provided, including an image uploading device as provided in any of the above embodiments; and / or a readable storage medium as provided in any of the above embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0186] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0187] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0188] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0189] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0190] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0191] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for uploading an image, used in an electronic device, characterized in that: The electronic device runs an operating system, and the image uploading method includes: When capturing a target image, obtaining positioning data; Performing image recognition on the target image to determine feature information of the target image; Determining the data source of the positioning data through the application program interface of the operating system; Verifying the characteristic information and the data source; Performing a duplicate check on the captured target image to verify the feature information; or Determining whether the photographing object of the target image is consistent with the target photographing object indicated by the photographing task information sent by the server, so as to verify the feature information; Verifying the source of the data to determine whether the source of the positioning data is derived from forged or virtual positioning; When both the characteristic information and the data source are verified, determining the location information according to the positioning data; The target image and the location information are associated, and the associated target image and the location information are uploaded to the server.
2. The image uploading method according to claim 1, characterized in that: Verify the source of the data, including: In the case where the data source is a virtual positioning, it is determined that the data source has not passed the verification.
3. The image uploading method according to claim 1, characterized in that: Verify the source of the data, including: Acquiring auxiliary positioning data, where a data source of the auxiliary positioning data is different from a data source of the positioning data; When the deviation between the longitude and latitude information corresponding to the auxiliary positioning data and the longitude and latitude data of the positioning data is less than a preset threshold, it is determined that the data source has passed the verification.
4. The image uploading method according to claim 1, characterized in that: Verify the source of the data, including: Obtaining a list of background programs of the electronic device; When the preset target program is not included in the background program list, it is determined that the data source has passed the verification.
5. The image uploading method according to any one of claims 1 to 4, characterized in that: The server stores N preset feature information corresponding to N preset images, where N is a positive integer; Verifying the characteristic information includes: Sending the characteristic information to the server, so that the server can determine the comparison result between the N preset characteristic information and the characteristic information; receiving the comparison result; If the comparison result is that the N preset characteristic information do not include the characteristic information, it is determined that the characteristic information passes the verification.
6. The image uploading method according to any one of claims 1 to 4, characterized in that: Before photographing the target image, the image uploading method further includes: receiving the shooting task information, wherein the shooting task information includes target feature information of the target shooting object; Verifying the characteristic information includes: In a case where the characteristic information matches the target characteristic information, it is determined that the characteristic information passes the verification.
7. The image uploading method according to any one of claims 1 to 4, characterized in that: Also includes: When the characteristic information or the data source fails to pass the verification, corresponding abnormal information is displayed.
8. An image uploading device, used in electronic equipment, characterized in that: The electronic device runs an operating system, and the image uploading device includes: An acquisition module is used to acquire positioning data when capturing a target image; Identify modules for: Performing image recognition on the target image to determine feature information of the target image; Determining the data source of the positioning data through the application program interface of the operating system; A verification module is used to verify the feature information and the data source; perform a duplicate check on the captured target image to verify the feature information; or determine whether the captured object of the target image is consistent with the target captured object indicated by the shooting task information sent by the server to verify the feature information; verify the data source to determine whether the data source of the positioning data is derived from forged or virtual positioning; The determination module is further configured to determine the location information according to the positioning data when both the feature information and the data source are verified; The uploading module is used to associate the target image with the location information, and upload the associated target image and location information to the server.
9. An image uploading device, characterized in that: include: Memory, used to store programs or instructions; A processor, used to implement the steps of the image uploading method as described in any one of claims 1 to 7 when executing the program or instruction.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the image uploading method according to any one of claims 1 to 7 are implemented.
11. An electronic device, characterized in that: include: The image uploading device as claimed in claim 8 or 9; and / or The readable storage medium as claimed in claim 10.
Citation Information
Patent Citations
Method and system for discriminating authenticity of property picture
CN105678658A
Virtual positioning detection method and device, electronic equipment and storage medium
CN114189550A