CN110765432B - System file modification method, intelligent projector and related products - Google Patents

System file modification method, intelligent projector and related products Download PDF

Info

Publication number
CN110765432B
CN110765432B CN201910911323.9A CN201910911323A CN110765432B CN 110765432 B CN110765432 B CN 110765432B CN 201910911323 A CN201910911323 A CN 201910911323A CN 110765432 B CN110765432 B CN 110765432B
Authority
CN
China
Prior art keywords
target
instruction
preset
identity information
feature set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910911323.9A
Other languages
Chinese (zh)
Other versions
CN110765432A (en
Inventor
钟威
胡震宇
庾波
冯军军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huole Science and Technology Development Co Ltd
Original Assignee
Shenzhen Huole Science and Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Huole Science and Technology Development Co Ltd filed Critical Shenzhen Huole Science and Technology Development Co Ltd
Priority to CN201910911323.9A priority Critical patent/CN110765432B/en
Publication of CN110765432A publication Critical patent/CN110765432A/en
Application granted granted Critical
Publication of CN110765432B publication Critical patent/CN110765432B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the application discloses a system file modification method, an intelligent projector and related products, which are applied to the intelligent projector, wherein the method comprises the following steps: receiving a target instruction; when the target instruction exists in a preset instruction set, reading the target instruction through a file pipeline reading interface, wherein the preset instruction set comprises at least one instruction, and each instruction is used for modifying a system file; analyzing the target instruction to obtain instruction content carried by the target instruction, and executing operation corresponding to the instruction content. By adopting the embodiment of the application, the system modification can be realized without root permission, and the improvement of the system file modification efficiency is facilitated.

Description

System file modification method, intelligent projector and related products
Technical Field
The application relates to the technical field of electronic equipment, in particular to a system file modification method, an intelligent projector and related products.
Background
Projection technology is commonly used in people's daily lives. The use of projection systems is visible everywhere, whether in meetings, instruction or entertainment venues.
In life, small and medium projectors for families and education, however, in the prior art, when the system file is modified, root rights are required to be obtained, so that the efficiency of modifying the system file is reduced.
Disclosure of Invention
The embodiment of the application provides a system file modification method, an intelligent projector and related products, which can realize system modification without root permission and are beneficial to improving the system file modification efficiency.
In a first aspect, an embodiment of the present application provides a system file modification method, applied to an intelligent projector, where the method includes:
receiving a target instruction;
when the target instruction exists in a preset instruction set, reading the target instruction through a file pipeline reading interface, wherein the preset instruction set comprises at least one instruction, and each instruction is used for modifying a system file;
analyzing the target instruction to obtain instruction content carried by the target instruction, and executing operation corresponding to the instruction content.
In a second aspect, an embodiment of the present application provides a system file modification apparatus, applied to an intelligent projector, where the apparatus includes:
a receiving unit for receiving a target instruction;
The reading unit is used for reading the target instruction through the file pipeline reading interface when the target instruction exists in a preset instruction set, wherein the preset instruction set comprises at least one instruction, and each instruction is used for modifying a system file;
and the execution unit is used for analyzing the target instruction, obtaining the instruction content carried by the target instruction, and executing the operation corresponding to the instruction content.
In a third aspect, an embodiment of the present application provides an intelligent projector, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
By implementing the embodiment of the application, the following beneficial effects are achieved:
it can be seen that the system file modification method, the intelligent projector and the related products described in the embodiments of the present application are applied to the intelligent projector, receive a target instruction, read the target instruction through a file pipeline reading interface when the target instruction exists in a preset instruction set, where the preset instruction set includes at least one instruction, each instruction is used to implement modification of a system file, analyze the target instruction, obtain instruction content carried by the target instruction, and execute an operation corresponding to the instruction content, and further, implement system modification without root authority, thereby being beneficial to improving system file modification efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a schematic structural diagram of an intelligent projector according to an embodiment of the present application;
FIG. 1B is a flowchart illustrating a system file modification method according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating another system file modification method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another intelligent projector according to an embodiment of the present application;
FIG. 4A is a functional block diagram of a system file modification device according to an embodiment of the present disclosure;
FIG. 4B is a functional block diagram of another system file modification device according to an embodiment of the present application;
fig. 4C is a functional unit block diagram of another system file modification apparatus according to an embodiment of the present application.
Detailed Description
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
As shown in fig. 1A, fig. 1A is a schematic structural diagram of an intelligent projector according to an embodiment of the present application. The intelligent projector includes a processor, memory, digital signal processor (digital signal processor, DSP), transceiver, speaker, microphone, random access memory (Random Access Memory, RAM), camera, sensor, network module, and the like. The system comprises a memory, a DSP, a projection device, a loudspeaker, a microphone, a RAM, a camera, a sensor and a network module, wherein the memory, the DSP, the projection device, the loudspeaker, the microphone, the RAM, the camera, the sensor and the network module are connected with a processor, and the transceiver is connected with a signal processor.
The Processor is a control center of the intelligent projector, and is connected with various parts of the whole intelligent projector by various interfaces and lines, executes various functions of the intelligent projector and processes data by running or executing software programs and/or modules stored in a memory and calling the data stored in the memory, so that the intelligent projector is monitored integrally, and the Processor can be a central processing unit (Central Processing Unit/Processor, CPU), a graphic processing unit (Graphics Processing Unit, GPU) or a network processing unit (nerve-network Processing Unit, NPU).
Further, the processor may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The memory is used for storing software programs and/or modules, and the processor executes the software programs and/or modules stored in the memory so as to execute various functional applications and data processing of the intelligent projector. The memory may mainly include a memory program area and a memory data area, wherein the memory program area may store an operating system, a software program required for at least one function, and the like; the storage data area may store data created according to the use of the intelligent projector, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
Wherein the sensor comprises at least one of: light-sensitive sensors, gyroscopes, infrared proximity sensors, vibration detection sensors, pressure sensors, etc. Wherein a light sensor, also called ambient light sensor, is used to detect the ambient light level. The light sensor may comprise a photosensitive element and an analog-to-digital converter. The photosensitive element is used for converting the collected optical signals into electric signals, and the analog-to-digital converter is used for converting the electric signals into digital signals. Optionally, the optical sensor may further include a signal amplifier, where the signal amplifier may amplify the electrical signal converted by the photosensitive element and output the amplified electrical signal to the analog-to-digital converter. The photosensitive element may include at least one of a photodiode, a phototransistor, a photoresistor, and a silicon photocell.
The camera may be a visible light camera (a general view camera, a wide angle camera), an infrared camera, or a dual camera (having a distance measuring function), and is not limited herein.
The network module may be at least one of: bluetooth module, wireless fidelity (wireless fidelity, wi-Fi), etc., without limitation, the projection device can implement a projection function.
Above-mentioned intelligent projector can also include multiunit LED stroboscopic lamp.
Receiving a target instruction;
when the target instruction exists in a preset instruction set, reading the target instruction through a file pipeline reading interface, wherein the preset instruction set comprises at least one instruction, and each instruction is used for modifying a system file;
analyzing the target instruction to obtain instruction content carried by the target instruction, and executing operation corresponding to the instruction content.
It can be seen that, in the intelligent projector described in the embodiment of the present application, when the target instruction exists in the preset instruction set, the target instruction is read through the file pipeline reading interface, the preset instruction set includes at least one instruction, each instruction is used for implementing modification of the system file, analyzing the target instruction, obtaining the instruction content carried by the target instruction, and executing the operation corresponding to the instruction content, and further, system modification can be implemented without root authority, which is helpful for improving the efficiency of system file modification.
The embodiments of the present application are described in detail below.
Referring to fig. 1B, fig. 1B is a flowchart of a system file modification method according to an embodiment of the present application, as shown in the drawing, applied to the intelligent projector shown in fig. 1A, where the system file modification method includes:
101. And receiving a target instruction.
Wherein the target instruction may be entered by a user through the intelligent projector or may be received for transmission by an electronic device connected to the intelligent projector. The electronic device may include various handheld devices, vehicle mounted devices, wearable devices (smart watches, smart bracelets, wireless headsets, augmented reality/virtual reality devices, smart glasses), computing devices or other processing devices connected to a wireless modem, as well as various forms of User Equipment (UE), mobile Stations (MS), terminal devices (terminal devices), etc. with wireless communication capabilities. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
In addition, in the embodiment of the present application, the intelligent projector may be at least one of the following systems: android system (Android), apple system, windows system, hong Meng system, etc., are not limited herein.
In one possible example, the target instruction is a String type in a preset format, and the target instruction is composed of three parts as follows: the character head data, the instruction content and the character tail data, of course, the instruction content can also carry the identity grade of the target object, and the target object can be any user.
102. When the target instruction exists in a preset instruction set, the target instruction is read through a file pipeline reading interface, the preset instruction set comprises at least one instruction, and each instruction is used for modifying a system file.
The preset instruction set may include at least one instruction, where each instruction may be used to implement modification of a system file.
In a possible example, the target instruction carries the target authority level of the target object, and between the above steps 101 and 102, the following steps may be further included
A1, judging whether the target permission level is higher than a preset permission level;
a2, executing the step of reading the target instruction through a file pipeline reading interface when the target instruction exists in a preset instruction set when the target authority level is higher than the preset authority level.
The preset authority level can be set by a user or default by the system. In a specific implementation, the intelligent projector may determine whether the target permission level is higher than a preset permission level, and execute step 102 when the target permission level is higher than the preset permission level, or else may not respond to the target instruction.
103. Analyzing the target instruction to obtain instruction content carried by the target instruction, and executing operation corresponding to the instruction content.
The intelligent projector can analyze the target instruction to obtain the corresponding instruction content, and execute the operation corresponding to the instruction content.
By way of illustration, the intelligent projector may write instructions to the file pipe write entry, which may be of the String type in a fixed format, and may define some standard specifications, for example, the instruction format is: the character head + command content + character tail, if the authority level is normal user level authority or no system level authority, the system file cannot be directly modified. In addition, the intelligent projector may write the instructions, and the file pipe may be responsible for storing the commands, waiting for the read service to read the commands. After receiving the instruction, the reading service can circularly read the file pipeline reading interface, read the instruction, analyze the instruction through the defined specification and execute related operations. The intelligent projector may have stored therein a set of instructions in advance, the set of instructions comprising at least one defined instruction which may be used to quickly modify a system file, the set of instructions may be integrated in the system and may be system level commands, the authority to modify the system file.
In a possible example, before the step 101, the following steps may be further included:
b1, acquiring target identity information of a target object;
b2, verifying the target identity information;
and B3, executing the step of receiving the target instruction when the target identity information is verified successfully.
In this embodiment of the present application, the target identity information and the preset identity information may be at least one of the following: face images, iris images, voiceprint information, character strings, touch information, fingerprint information, and the like, are not limited herein. In a specific implementation, the intelligent projector can acquire the target identity information of the target object, and further, can match the target identity information with preset identity information, and when the target identity information is successfully matched with the preset identity information, the target identity information is confirmed to be successfully verified, otherwise, when the target identity information is successfully matched with the preset identity information, the target identity information is confirmed to be failed to be verified.
In one possible example, when the target identity information is a target face image, the intelligent projector further includes a rotatable camera, and the step B1 of obtaining the target identity information of the target object may include the following steps:
B11, rotating and shooting according to a preset rotation track through the rotatable camera to obtain a shooting image;
b12, carrying out face segmentation on the shot image to obtain at least one face image;
b13, determining the distance between each object in the at least one face image and the rotatable camera to obtain at least one distance;
and B14, taking the face image corresponding to the minimum value in the at least one distance as the target face image.
In this embodiment of the present application, the rotatable camera may be a single camera or multiple cameras, the single camera may be a visible light camera or an infrared camera, the visible light camera may be a common view angle camera or a wide angle camera, the multiple cameras may be dual cameras or three cameras, and the like, which is not limited herein. The preset rotation track may be stored in the intelligent projector in advance.
In specific implementation, the intelligent projector can rotate and shoot according to a preset rotation track through the rotatable camera to obtain a shooting image, further, face segmentation can be carried out on the shooting image to obtain at least one face image, further, the distance between each object in the at least one face image and the rotatable camera can be determined to obtain at least one distance, and the face image corresponding to the minimum value in the at least one distance can be used as a target face image.
Further, in one possible example, the verifying the target identity information by B2 may include the following steps:
b21, acquiring a target distance and a target face angle between the target face image and the rotatable camera;
b22, extracting features of the target face image to obtain a global feature set and a local feature set of a preset part;
b23, acquiring a first preset threshold corresponding to global feature matching and a second preset threshold corresponding to local feature matching;
b24, determining a target first adjustment coefficient corresponding to the target distance according to a mapping relation between a preset distance and the first adjustment coefficient;
b25, determining a target second adjustment coefficient corresponding to the target face angle according to a mapping relation between a preset face angle and the second adjustment coefficient;
b26, adjusting the first preset threshold according to the target first adjustment coefficient to obtain a target first preset threshold;
b27, adjusting the second preset threshold according to the target second adjusting coefficient to obtain a target second preset threshold;
b28, matching the global feature set with a preset global feature set of a preset face template, and matching the local feature set of the preset part with a preset local feature set corresponding to the preset face template;
B29, when the matching value between the global feature set and the preset global feature set is larger than the target first preset threshold value and the matching value between the local feature set and the preset local feature set is larger than the target second preset threshold value, confirming that the target identity information is successfully verified.
In this embodiment of the present application, a first preset threshold value for implementing global feature matching and a second preset threshold value for implementing local feature matching may be stored in advance in the intelligent projector, and both the first preset threshold value and the second preset threshold value may be set by a user or default by the system. The preset part can be set by the user or default by the system, and the preset part can be at least one of the following: ears, nose, mouth, teeth, eyebrows, forehead, chin, etc., are not limited herein. In addition, the mapping relationship between the preset distance and the first adjustment coefficient and the mapping relationship between the preset face angle and the second adjustment coefficient can be stored in the intelligent projector in advance.
In a specific implementation, the intelligent projector can acquire a target distance and a target face angle between a target face image and the rotatable camera, and in particular, the intelligent projector can be realized through the camera. Further, feature extraction may be performed on the target face image to obtain a global feature set and a local feature set of the preset portion, where the main mode of feature extraction may be at least one of the following: the harris corner detection, scale invariant feature transform algorithm (scale invariant feature transform, SIFT), SURF algorithm, pyramid algorithm, wavelet transform, etc., are not limited herein. The feature extraction modes of the global feature set and the local feature set may be the same or different. The intelligent projector can also store a preset face template in advance, and the preset face template can comprise a preset global feature set and a preset local feature set corresponding to the preset position.
Further, the intelligent projector may obtain a first preset threshold corresponding to global feature matching and a second preset threshold corresponding to local feature matching, further, may determine a target first adjustment coefficient corresponding to the target distance according to a mapping relationship between a preset distance and the first adjustment coefficient, for example, the first adjustment coefficient is-0.1 to 0.1, and determine a target second adjustment coefficient corresponding to the target face angle according to a mapping relationship between a preset face angle and the second adjustment coefficient, for example, the second adjustment coefficient is-0.1 to 0.1, and may adjust the first preset threshold according to the target first adjustment coefficient to obtain a target first preset threshold, and adjust the second preset threshold according to the target second adjustment coefficient to obtain a target second preset threshold, then the target second threshold=the second preset threshold (1+target second adjustment coefficient).
Further, the intelligent projector may match the global feature set with a preset global feature set of a preset face template, and match the local feature set of a preset part with a preset local feature set corresponding to the preset face template, where a matching value between the global feature set and the preset global feature set is greater than a target first preset threshold and a matching value between the local feature set and the preset local feature set is greater than a target second preset threshold, it is determined that the target identity information is successfully verified, otherwise, if a matching value between the global feature set and the preset global feature set is less than or equal to the target first preset threshold, or if a matching value between the local feature set and the preset local feature set is less than or equal to the target second preset threshold, it is determined that the target identity information is failed to be verified, so that, in a specific implementation, a distance may be adjusted by a distance and a face angle, a picture may be relatively clear, a number of pixels may be photographed, a feature point may be more photographed, a far, a feature point may be included, and a face angle may be adjusted by a face angle may be relatively clear, if the face angle may be adjusted by a face angle, or a face may be dynamically may be adjusted by a face angle.
In one possible example, between the step B27 and the step B29, the following steps may be included:
c1, acquiring a first face acquisition environment parameter corresponding to the target face image;
c2, determining a second face acquisition environment parameter corresponding to the preset face template;
c3, determining target differentiated face acquisition environment parameters between the first face acquisition environment parameters and the second face acquisition environment parameters;
c4, determining a target third adjustment coefficient corresponding to the target differentiated face acquisition environment parameter according to a mapping relation between the preset face acquisition environment parameter and the third adjustment coefficient;
c5, adjusting the target second preset threshold according to the target third adjustment coefficient to obtain an adjusted target second preset threshold;
step B29, when the matching value between the global feature set and the preset global feature set is greater than the target first preset threshold and the matching value between the local feature set and the preset local feature set is greater than the target second preset threshold, may be implemented as follows:
and when the matching value between the global feature set and the preset global feature set is larger than the target first preset threshold value and the matching value between the local feature set and the preset local feature set is larger than the adjusted target second preset threshold value, confirming that the target identity information is successfully verified.
The preset fingerprint matching threshold can be set by the user or default by the system. In this embodiment of the present application, the face collection environment parameter may be at least one of the following: the face collection mode, the ambient brightness, the collection temperature, the collection humidity, the magnetic field interference intensity, the geographic position, the weather and the like are not limited herein, the face collection mode is mainly determined by camera attributes, and the camera attributes can be at least one of the following: the infrared camera, the ultraviolet camera or the visible light camera, etc. are not limited herein, and the corresponding fingerprint collection mode may be infrared face collection, ultraviolet face collection, visible light face collection, etc., which are not limited herein.
In a specific implementation, the first face acquisition environment parameter may be carried in the target face image, the intelligent projector may acquire the first face acquisition environment parameter corresponding to the target face image, and may further determine a second face acquisition environment parameter corresponding to the preset face template, where the second face acquisition environment parameter may be pre-stored in the intelligent projector.
Further, the intelligent projector may determine a target differentiated face acquisition environment parameter between the first face acquisition environment parameter and the second face acquisition environment parameter, and specifically may be: the target differential face acquisition environment parameter=the first face acquisition environment parameter-the second face acquisition environment parameter, of course, the target differential face acquisition environment parameter=the first face acquisition environment parameter-the second face acquisition environment parameter may be quantized, then the differential operation (subtraction or quotient calculation) is performed, the mapping relationship between the preset face acquisition environment parameter and the third adjustment coefficient may be prestored in the intelligent projector, further, the target third adjustment coefficient corresponding to the target differential face acquisition environment parameter may be determined according to the mapping relationship between the preset face acquisition environment parameter and the third adjustment coefficient, the value range of the target third adjustment coefficient may be-0.01, then the target second preset threshold may be adjusted according to the target third adjustment coefficient, so as to obtain the adjusted target second preset threshold, that is, the adjusted target second preset threshold=the target second preset threshold (1+the target third adjustment coefficient), so that the matching threshold may be adjusted for different environments, and the face recognition efficiency is facilitated to be improved.
It can be seen that, the system file modification method described in the embodiment of the present application is applied to an intelligent projector, receives a target instruction, reads the target instruction through a file pipeline reading interface when the target instruction exists in a preset instruction set, where the preset instruction set includes at least one instruction, each instruction is used for implementing modification of a system file, analyzes the target instruction, obtains instruction content carried by the target instruction, and executes an operation corresponding to the instruction content, and further, system modification can be implemented without root authority, which is helpful for improving system file modification efficiency.
In accordance with the embodiment shown in fig. 1B, please refer to fig. 2, fig. 2 is a flow chart of a system file modification method according to an embodiment of the present application, as shown in the drawing, applied to the intelligent projector shown in fig. 1A, the system file modification method includes:
201. and acquiring target identity information of the target object.
202. And verifying the target identity information.
203. And receiving a target instruction when the target identity information is verified successfully.
204. When the target instruction exists in a preset instruction set, the target instruction is read through a file pipeline reading interface, the preset instruction set comprises at least one instruction, and each instruction is used for modifying a system file.
205. Analyzing the target instruction to obtain instruction content carried by the target instruction, and executing operation corresponding to the instruction content.
The specific description of the above steps 201 to 205 may refer to the corresponding steps of the system file modification method described in fig. 1B, and will not be repeated herein.
It can be seen that, the system file modification method described in the embodiment of the present application is applied to an intelligent projector, acquires target identity information of a target object, verifies the target identity information, receives a target instruction when the target identity information is verified successfully, reads the target instruction through a file pipe reading interface when the target instruction exists in a preset instruction set, and includes at least one instruction in the preset instruction set, each instruction is used for implementing modification of a system file, analyzing the target instruction, obtaining instruction content carried by the target instruction, and executing an operation corresponding to the instruction content, thereby, on one hand, identity verification can be implemented, malicious modification of the system file is prevented, and on the other hand, system modification can be implemented without root authority, which is helpful for improving system file modification efficiency.
In accordance with the above embodiments, referring to fig. 3, fig. 3 is a schematic structural diagram of an intelligent projector according to an embodiment of the present application, as shown in the fig. 3, the intelligent projector includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and in the embodiment of the present application, the programs include instructions for performing the following steps:
Receiving a target instruction;
when the target instruction exists in a preset instruction set, reading the target instruction through a file pipeline reading interface, wherein the preset instruction set comprises at least one instruction, and each instruction is used for modifying a system file;
analyzing the target instruction to obtain instruction content carried by the target instruction, and executing operation corresponding to the instruction content.
It can be seen that, in the intelligent projector described in the embodiment of the present application, when the target instruction exists in the preset instruction set, the target instruction is read through the file pipeline reading interface, the preset instruction set includes at least one instruction, each instruction is used for implementing modification of the system file, analyzing the target instruction, obtaining the instruction content carried by the target instruction, and executing the operation corresponding to the instruction content, and further, system modification can be implemented without root authority, which is helpful for improving the efficiency of system file modification.
In one possible example, the target instruction is a String type in a preset format, and the target instruction is composed of the following three parts: character header data, instruction content, and character trailer data.
In one possible example, the target instruction carries a target authority level of the target object, and the program further includes instructions for performing the steps of:
judging whether the target authority level is higher than a preset authority level or not;
and executing the step of reading the target instruction through a file pipeline reading interface when the target instruction exists in a preset instruction set when the target authority level is higher than the preset authority level.
In one possible example, the above-described program further includes instructions for performing the steps of:
acquiring target identity information of a target object;
verifying the target identity information;
and executing the step of receiving the target instruction when the target identity information is verified successfully.
In one possible example, when the target identity information is a target face image, the intelligent projector further includes a rotatable camera, and the program includes instructions for performing the following steps in terms of acquiring the target identity information of the target object:
rotating and shooting according to a preset rotation track through the rotatable camera to obtain a shooting image;
carrying out face segmentation on the shot image to obtain at least one face image;
Determining the distance between each object in the at least one face image and the rotatable camera to obtain at least one distance;
and taking the face image corresponding to the minimum value in the at least one distance as the target face image.
In one possible example, in said verifying of said target identity information, the above-mentioned program comprises instructions for:
acquiring a target distance and a target face angle between the target face image and the rotatable camera;
extracting features of the target face image to obtain a global feature set and a local feature set of a preset part;
acquiring a first preset threshold corresponding to global feature matching and a second preset threshold corresponding to local feature matching;
determining a target first adjustment coefficient corresponding to the target distance according to a mapping relation between a preset distance and the first adjustment coefficient;
determining a target second adjustment coefficient corresponding to the target face angle according to a mapping relation between a preset face angle and the second adjustment coefficient;
adjusting the first preset threshold according to the target first adjustment coefficient to obtain a target first preset threshold;
Adjusting the second preset threshold according to the target second adjusting coefficient to obtain a target second preset threshold;
matching the global feature set with a preset global feature set of a preset face template, and matching the local feature set of the preset part with a preset local feature set corresponding to the preset face template;
and when the matching value between the global feature set and the preset global feature set is larger than the target first preset threshold value and the matching value between the local feature set and the preset local feature set is larger than the target second preset threshold value, confirming that the target identity information is successfully verified.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the intelligent projector, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application may divide the functional units of the intelligent projector according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
Fig. 4A is a functional unit block diagram of a system file modification apparatus 400 according to an embodiment of the present application. The system file modification device 400 is applied to an intelligent projector, and the device 400 comprises: a receiving unit 401, a reading unit 402, and an executing unit 403, wherein,
a receiving unit 401 for receiving a target instruction;
a reading unit 402, configured to read the target instruction through a file pipeline reading interface when the target instruction exists in a preset instruction set, where the preset instruction set includes at least one instruction, and each instruction is used to implement modification of a system file;
And the execution unit 403 is configured to parse the target instruction, obtain instruction content carried by the target instruction, and execute an operation corresponding to the instruction content.
It can be seen that the system file modification device described in the embodiment of the present application is applied to an intelligent projector, receives a target instruction, reads the target instruction through a file pipeline reading interface when the target instruction exists in a preset instruction set, where the preset instruction set includes at least one instruction, each instruction is used for implementing modification of a system file, analyzes the target instruction, obtains instruction content carried by the target instruction, and executes an operation corresponding to the instruction content, and further, system modification can be implemented without root authority, which is helpful for improving system file modification efficiency.
In one possible example, the target instruction is a String type in a preset format, and the target instruction is composed of the following three parts: character header data, instruction content, and character trailer data.
In one possible example, the target instruction carries a target authority level of the target object, as shown in fig. 4B, fig. 4B is a further modified structure of the system file modification device shown in fig. 4A, and compared with fig. 4A, may further include: the judging unit 404 is specifically as follows:
A judging unit 404, configured to judge whether the target permission level is higher than a preset permission level;
and when the target authority level is higher than the preset authority level, executing the step of reading the target instruction through a file pipeline reading interface when the target instruction exists in a preset instruction set by the reading unit 402.
In one possible example, as shown in fig. 4C, fig. 4C is a further modified structure of the system file modification apparatus shown in fig. 4A, which may further include, compared to fig. 4A: the acquisition unit 405 and the verification unit 406 are specifically as follows:
an obtaining unit 405, configured to obtain target identity information of a target object;
a verification unit 406, configured to verify the target identity information;
the step of receiving the target instruction is performed by the receiving unit 401 when the verification result of the verification unit 406 is that the target identity information is verified successfully.
In one possible example, when the target identity information is a target face image, the intelligent projector further includes a rotatable camera, and the acquiring unit 405 is specifically configured to:
Rotating and shooting according to a preset rotation track through the rotatable camera to obtain a shooting image;
carrying out face segmentation on the shot image to obtain at least one face image;
determining the distance between each object in the at least one face image and the rotatable camera to obtain at least one distance;
and taking the face image corresponding to the minimum value in the at least one distance as the target face image.
In one possible example, in terms of said verifying the target identity information, the verification unit 406 is specifically configured to:
acquiring a target distance and a target face angle between the target face image and the rotatable camera;
extracting features of the target face image to obtain a global feature set and a local feature set of a preset part;
acquiring a first preset threshold corresponding to global feature matching and a second preset threshold corresponding to local feature matching;
determining a target first adjustment coefficient corresponding to the target distance according to a mapping relation between a preset distance and the first adjustment coefficient;
determining a target second adjustment coefficient corresponding to the target face angle according to a mapping relation between a preset face angle and the second adjustment coefficient;
Adjusting the first preset threshold according to the target first adjustment coefficient to obtain a target first preset threshold;
adjusting the second preset threshold according to the target second adjusting coefficient to obtain a target second preset threshold;
matching the global feature set with a preset global feature set of a preset face template, and matching the local feature set of the preset part with a preset local feature set corresponding to the preset face template;
and when the matching value between the global feature set and the preset global feature set is larger than the target first preset threshold value and the matching value between the local feature set and the preset local feature set is larger than the target second preset threshold value, confirming that the target identity information is successfully verified.
It may be understood that the functions of each program module of the system file modification apparatus of the present embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not repeated herein.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any one of the method embodiments described in the method embodiments, and the computer includes an intelligent projector.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an intelligent projector.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (8)

1. A system file modification method, applied to an intelligent projector, comprising:
receiving a target instruction;
when the target instruction exists in a preset instruction set, reading the target instruction through a file pipeline reading interface, wherein the preset instruction set comprises at least one instruction, and each instruction is used for modifying a system file;
Analyzing the target instruction to obtain instruction content carried by the target instruction, and executing an operation corresponding to the instruction content;
wherein the method further comprises:
acquiring target identity information of a target object;
verifying the target identity information;
executing the step of receiving a target instruction when the target identity information is verified successfully;
when the target identity information is a target face image, the intelligent projector further comprises a rotatable camera, and the acquiring of the target identity information of the target object comprises the following steps:
rotating and shooting according to a preset rotation track through the rotatable camera to obtain a shooting image;
carrying out face segmentation on the shot image to obtain at least one face image;
determining the distance between each object in the at least one face image and the rotatable camera to obtain at least one distance;
and taking the face image corresponding to the minimum value in the at least one distance as the target face image.
2. The method of claim 1, wherein the target instruction is of a String type in a preset format, and the target instruction is composed of three parts: character header data, instruction content, and character trailer data.
3. The method of claim 1 or 2, wherein the target instruction carries a target permission level of a target object, the method further comprising:
judging whether the target authority level is higher than a preset authority level or not;
and executing the step of reading the target instruction through a file pipeline reading interface when the target instruction exists in a preset instruction set when the target authority level is higher than the preset authority level.
4. The method according to claim 1 or 2, wherein said verifying said target identity information comprises:
acquiring a target distance and a target face angle between the target face image and the rotatable camera;
extracting features of the target face image to obtain a global feature set and a local feature set of a preset part;
acquiring a first preset threshold corresponding to global feature matching and a second preset threshold corresponding to local feature matching;
determining a target first adjustment coefficient corresponding to the target distance according to a mapping relation between a preset distance and the first adjustment coefficient;
determining a target second adjustment coefficient corresponding to the target face angle according to a mapping relation between a preset face angle and the second adjustment coefficient;
Adjusting the first preset threshold according to the target first adjustment coefficient to obtain a target first preset threshold;
adjusting the second preset threshold according to the target second adjusting coefficient to obtain a target second preset threshold;
matching the global feature set with a preset global feature set of a preset face template, and matching the local feature set of the preset part with a preset local feature set corresponding to the preset face template;
and when the matching value between the global feature set and the preset global feature set is larger than the target first preset threshold value and the matching value between the local feature set and the preset local feature set is larger than the target second preset threshold value, confirming that the target identity information is successfully verified.
5. A system file modification apparatus for use with an intelligent projector, the apparatus comprising:
a receiving unit for receiving a target instruction;
the reading unit is used for reading the target instruction through the file pipeline reading interface when the target instruction exists in a preset instruction set, wherein the preset instruction set comprises at least one instruction, and each instruction is used for modifying a system file;
The execution unit is used for analyzing the target instruction, obtaining the instruction content carried by the target instruction, and executing the operation corresponding to the instruction content;
wherein, the device is also specifically used for:
acquiring target identity information of a target object;
verifying the target identity information;
executing the step of receiving a target instruction when the target identity information is verified successfully;
when the target identity information is a target face image, the intelligent projector further comprises a rotatable camera, and the acquiring of the target identity information of the target object comprises the following steps:
rotating and shooting according to a preset rotation track through the rotatable camera to obtain a shooting image;
carrying out face segmentation on the shot image to obtain at least one face image;
determining the distance between each object in the at least one face image and the rotatable camera to obtain at least one distance;
and taking the face image corresponding to the minimum value in the at least one distance as the target face image.
6. The apparatus of claim 5, wherein the target instruction is of a String type in a preset format, and the target instruction is composed of three parts: character header data, instruction content, and character trailer data.
7. An intelligent projector comprising a processor, a memory for storing one or more programs, and the programs configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-4.
8. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 1-4.
CN201910911323.9A 2019-09-25 2019-09-25 System file modification method, intelligent projector and related products Active CN110765432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910911323.9A CN110765432B (en) 2019-09-25 2019-09-25 System file modification method, intelligent projector and related products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910911323.9A CN110765432B (en) 2019-09-25 2019-09-25 System file modification method, intelligent projector and related products

Publications (2)

Publication Number Publication Date
CN110765432A CN110765432A (en) 2020-02-07
CN110765432B true CN110765432B (en) 2023-05-12

Family

ID=69330000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910911323.9A Active CN110765432B (en) 2019-09-25 2019-09-25 System file modification method, intelligent projector and related products

Country Status (1)

Country Link
CN (1) CN110765432B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8589345B2 (en) * 2012-03-22 2013-11-19 Adobe Systems Incorporated Method and system for performing object file modifications
CN103310156A (en) * 2013-05-31 2013-09-18 东莞宇龙通信科技有限公司 Method and device for updating terminal system file
CN104423928A (en) * 2013-09-09 2015-03-18 腾讯科技(深圳)有限公司 Data processing method, data processing device and terminal equipment
CN103744697A (en) * 2013-12-26 2014-04-23 乐视网信息技术(北京)股份有限公司 System file configuration method and device
CN107832127B (en) * 2017-10-20 2022-03-01 Oppo广东移动通信有限公司 Application control method and related product
CN107861751A (en) * 2017-11-22 2018-03-30 出门问问信息科技有限公司 The amending method and device of configuration file

Also Published As

Publication number Publication date
CN110765432A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN110808041B (en) Voice recognition method, intelligent projector and related product
CN109756763B (en) Electronic device for processing image based on priority and operating method thereof
EP4340377A2 (en) Fake video detection using block chain
US20210117650A1 (en) Fake video detection
US20190251670A1 (en) Electronic device and method for correcting images using external electronic device
KR20220017242A (en) Electronic device generating an image by applying effects to subject and background and Method thereof
CN109618098A (en) A kind of portrait face method of adjustment, device, storage medium and terminal
CN113906730B (en) Electronic apparatus for obtaining skin image and control method thereof
US11032529B2 (en) Selectively applying color to an image
US11144197B2 (en) Electronic device performing function according to gesture input and operation method thereof
CN111818599A (en) Network connection control method, device and storage medium
CN110765432B (en) System file modification method, intelligent projector and related products
CN110602827A (en) Kara OK light effect implementation method, intelligent projector and related product
CN110806936B (en) Resource management method, intelligent projector and related product
US20210117690A1 (en) Fake video detection using video sequencing
CN110839151A (en) Game projection optimization method and related device
CN112101275B (en) Human face detection method, device, equipment and medium for multi-view camera
CN113240602A (en) Image defogging method and device, computer readable medium and electronic equipment
EP3928236B1 (en) Electronic device and method for securing personal information included in image
CN115037883A (en) Exposure parameter adjusting method and device, storage medium and electronic equipment
CN110675615B (en) Remote communication implementation method, intelligent projector and related product
CN109741243B (en) Color sketch image generation method and related product
WO2021080815A1 (en) Fake video detection
CN110837416B (en) Memory management method, intelligent projector and related product
CN113591514A (en) Fingerprint liveness detection method, fingerprint liveness detection device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant